package com.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@ApiModel("创建消息请求对象")
public class MessageCreateDTO {
    @ApiModelProperty(value = "消息ID")
    private Long id;

    @ApiModelProperty(value = "消息标题", required = true)
    private String title;

    @ApiModelProperty(value = "消息内容", required = true)
    private String content;

    @ApiModelProperty(value = "消息类型: APPROVAL, NOTICE, TASK, SYSTEM", required = true)
    private String messageType;

    @ApiModelProperty(value = "接收人角色ID")
    private Long roleId;

    @ApiModelProperty(value = "接收人角色名称")
    private String roleName;

    @ApiModelProperty(value = "接收人用户ID", required = true)
    private Long receiverId;

    @ApiModelProperty(value = "业务类型: AFTER_SALES, ORDER 等")
    private String businessType;

    @ApiModelProperty(value = "售后单编号等业务编号")
    private String orderNumber;

    @ApiModelProperty(value = "关联服务问题ID")
    private Long serviceProblemId;

    @ApiModelProperty(value = "发送人名称，默认系统为0")
    private String senderName;

    @ApiModelProperty(value = "来源: SYSTEM, USER, AUTO")
    private String source;

    @ApiModelProperty("消息状态: UNTREATED未处理, PROCESSED已处理, AGREE同意, REFUSE拒绝")
    private String status;

    @ApiModelProperty("关联人ID")
    private Long relatedId;
}